package com.ftg.learn.controller;

import com.ftg.learn.dao.DeptDao;
import com.ftg.learn.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
public class DeptController {

    @Autowired
    DeptService deptService;

    @GetMapping("/hello")
    public List<DeptDao> show(){
        return deptService.show();
    }
}
